/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - For5
 * <p>Powered by webrx On 2022-09-05 10:07:25
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For5 {
    public static void main(String[] args) {
        for (int i = 1; i <= 10; i++) {
            if (i % 2 == 0) {
                System.out.println(i);
            }
        }

        for (int i = 1; i <= 10; i++) {
            if (i % 2 != 0) {
                System.out.println(i);
            }
        }

        for (int i = 1; i <= 10; i += 2) {
            System.out.println(i);
        }

        for (int i = 10; i >= 2; i -= 2) {
            System.out.println(i);
        }
    }
}
